package com.emep.changzhi.analyse.entity.information;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Wangcc
 * @version V1.0
 * @Description: TODO
 * @date 2018/2/26 16:39
 */
@Data
@Table(name = "sys_mail_info")
@Entity
public class SysMailInfo implements Serializable{

    private static final long serialVersionUID = 4715293047766720546L;

    @Id
    @GenericGenerator(name = "system-uuid" , strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;

    @Column(name = "user_id",columnDefinition="varchar(100) COMMENT '用户id'" )
    private String userId;

    @Column(name = "phone",columnDefinition="varchar(100) COMMENT '手机号'" )
    private String phone;

    @Column(name = "opend_id",columnDefinition="varchar(100) COMMENT '微信号id'" )
    private String opendId;

    @Column(name = "is_delete",columnDefinition="varchar(100) COMMENT '是否删除'" )
    private String isDelete = "0";

    @Column(name = "create_date",columnDefinition="varchar(100) COMMENT '录入时间'" )
    private String createDate = String.valueOf(System.currentTimeMillis());

}
